package day10;

import java.util.ArrayList;

/**
 * @author oldliu
 * @since 1.0
 */
public class Xuesheng {
    private String name;
    private String age;
    private final String sex;

    public Xuesheng() {
        sex = "男";
    }

    public Xuesheng(String name, String age, String sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    //    public void setSex(String s){
//        this.sex=s;
//    }
    public static void main(String[] args) {
        Xuesheng x = new Xuesheng("马超", "20", "妖");
        System.out.println(x.getSex());
        final  int i=100;
        //i=200;//error
        ArrayList l=null;
        String s=null;
    }
}
